//
//  PRDiskFileUploadCell.h
//  DiskHelper
//
//  Created by Gao on 2018/7/17.
//  Copyright © 2018年 WebersonGao. All rights reserved.
//

#import "PRDiskTableViewCell.h"
#import "PRConfigureView.h"

@class PRDiskFileUploadCell,PRDiskSource;
@protocol PRDiskFileUploadCellDelegate <NSObject>
@optional
/// 点击上传按钮
- (void)fileUploadCell:(PRDiskFileUploadCell *)cell needUpload:(BOOL)needUpload;
/// 点击删除按钮
- (void)fileUploadCellDidClickedDeleteButton:(PRDiskFileUploadCell *)cell;
@end

@interface PRDiskFileUploadCell : PRDiskTableViewCell<PRConfigureView>

/// delegate
@property (nonatomic , readwrite , weak) id <PRDiskFileUploadCellDelegate> delegate ;


/// 更新进度 这个方法主要是解决因为进度的更新会比较频繁，导致Cell闪烁的Bug
/// source -- 资源
/// animated -- 动画
- (void)refreshProgress:(PRDiskSource *)source animated:(BOOL)animated;

@end
